﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AccountAdmin/AdminMaster.master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="PRJ_LDW_Eutoliso.AccountAdmin.Servico.Categoria.Edit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headTile" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="headScript" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body_pre_central" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body_central_first" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="body_central" runat="server">

    <!-- Start Box -->
    <div class="boxes-full">

        <div class="boxes-padding fullpadding">

            <!-- Start None Split Section -->
            <div class="splitnone">

                <div id="portfolio-container">


                    <!-- Start 4 column portfolio -->
                    <div class="element web">

                        <div class="col1">
                            <div class="wrapper_01">
                                
                                 <div class="wrapper_01">
                                
                                <h3>
                                    <div class="wrapper_01">
                                        <li class="under_02"><a href="/AccountAdmin/Home.aspx" title="" class="active">Página Inicial</a></li>
                                        <li class="under_02"><a href="#">Anúncios</a></li>
                                        <li class="under_02"><a href="#">Meus Dados</a></li>
                                        <li class="under_02"><a href="/AccountAdmin/Servico/Home.aspx" title="" class="active">Serviços</a></li>
                                    </div>
                                </h3>

                            </div>

                            </div>
                        </div>

                    </div>

                    <div class="element graphic">

                        <br />

                        <asp:EntityDataSource ID="dsEstado" runat="server" ConnectionString="name=tolisoEntities" DefaultContainerName="tolisoEntities" EnableDelete="True" EnableFlattening="False" EntitySetName="estado" EnableInsert="True" EnableUpdate="True">
                        </asp:EntityDataSource>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:eutolisodbConnectionString %>" SelectCommand="SELECT Nome, Observacao FROM servicotipo WHERE (Id = @ID)">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="ID" QueryStringField="ID" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                        <br />

                        <br />

                    </div>

                    <div class="element logo">
                       <h2> Editar Categoria </h2>

                         <br />
                        <br />
                                <table>
                            <tr>
                                <td>
                                   <h3> <asp:Label ID="Label2" runat="server" Text="Nome" /> </h3>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNome" runat="server" Width="230px" CssClass="contacttextform"></asp:TextBox>
                                </td>
                            </tr>
                        
                             <tr>
                                <td>
                                   <h3> <asp:Label ID="Label1" runat="server" Text="Observação" /> </h3>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtObservacao" runat="server" Width="230px" Height="82px" TextMode="MultiLine" CssClass="contacttextform"></asp:TextBox>
                                </td>
                            </tr>                 
                            </table>
                            <table>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="btnEdit" runat="server" Text="Editar" OnClick="btnEdit_Click"  CssClass="smallsmoothrectange orangebutton"/>
                                </td>
                                 <td>
                                    <asp:LinkButton ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" CssClass="smallsmoothrectange orangebutton"/>
                                </td>

                            </tr>
                                
                        </table>

                        <br />
                        <asp:Label ID="lblMsg" runat="server" Text="Item atualizado com sucesso!" ForeColor="Red" Visible="False"></asp:Label>
                        <br />


                        <a href="Home.aspx" class="smallsmoothrectange orangebutton">Mostrar todos</a>

                    </div>

                    <!-- End 4 column portfolio -->

                </div>

            </div>
            <!-- End None Split Section -->

        </div>

    </div>
    <!-- End Box -->

</asp:Content>
